﻿namespace TrinityEngine
{
    public class BatchedSpriteRenderer : Component
    {
        public Sprite sprite;

        public Vector2 pivot;

        public Color color = Color.White;

        public int orderInLayer = 0;

        protected override void OnEnable()
        {
            SpriteBatcher.Instance.AddRenderer(this);
        }

        protected override void OnDisable()
        {
            SpriteBatcher.Instance.RemoveRenderer(this);
        }
    }
}
